package org.xs.big_event.utils;

public class ThreadLocatUtil {
    private static final ThreadLocal threadLocal = new ThreadLocal();
    //设置
    public static void set(Object obj) {
        threadLocal.set(obj);
    }
    //获取
    public static <T> T get() {
        return (T)threadLocal.get();
    }
    //移除
    public static void remove() {
        threadLocal.remove();
    }

}
